package cn.sccl.dirms.topo.discovery.service;

import java.util.Comparator;
import java.util.List;
import java.util.Map;

/**
 * Created by julei on 2017/9/14.
 */
public class MapValueComparator implements Comparator<Map.Entry<String, List<String>>> {

    @Override
    public int compare(Map.Entry<String, List<String>> me1, Map.Entry<String, List<String>> me2) {

        return (me2.getValue()==null)?0:me2.getValue().size() - ((me1.getValue()==null)?0:me1.getValue().size());
    }
}